<?php

include("include/FusionCharts.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

        <title>FusionCharts - Simple Column 3D Chart using JSON in dataStr method</title>
        <link href="ui/css/style.css" rel="stylesheet" type="text/css" />
        <script type="text/javascript" src="ui/js/jquery-1.4.2.min.js"></script>
        <script type="text/javascript" src="ui/js/lib.js"></script>
        <script type="text/javascript" src="ui/js/FusionCharts.js"></script>
    </head>
    <BODY>
                    <div class="gen-chart-render">
                        <?php
                        $strJSON  = '{
										 "chart":{
										  "caption":"Thống Kê Hệ Thống Email Manager", "xaxisname":"Khách Hàng Theo Tháng",
										   "yaxisname":"Số Lượng", "showvalues":"1000",
										   "formatnumberscale":"0", "showborder":"1"  },
										  "data":[
										   { "label":"01", "value":"100"  },
										   { "label":"02", "value":"300"  },
										   { "label":"03", "value":"400"  },
										 { "label":"04", "value":"494"  },
										   { "label":"05", "value":"761"  },
										   { "label":"06", "value":"960"  },
										   { "label":"07", "value":"629"  },
										   { "label":"08", "value":"622"  },
											{ "label":"09", "value":"376"  },
										   { "label":"10", "value":"494"  },
										   { "label":"11", "value":"761"  },
										   { "label":"12", "value":"1000"  }
										  ]
									}';

                        // set chart data format to json
                        FC_SetDataFormat("json");
                        echo renderChart("ui/Column3D.swf", "", $strJSON, "myNext", 600, 300, false, true);
                        ?>
                    </div>
    </BODY>
</HTML>
